import java.util.Scanner;

//创作人：菲利普

public class TestDemo{


//判断从键盘上输入的数是否为闰年？
	public static void main(String[] args) {
		
		Scanner scan=new Scanner(System.in);
		
		while(scan.hasNextInt()){
			int year=scan.nextInt();
			if((year%4==0 && year%100!=0) || year%400==0)
				System.out.println("闰年！");
		    else
		    	System.out.println("不是闰年！");
			}

		}

		

	


	public static void main4(String[] args) {

		Scanner scan = new Scanner(System.in);
        String str = scan.next();
		System.out.println(str);
	}
	public static void main3(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int a=scan.nextInt();
		System.out.println(a);

		String str = scan.nextLine();
		System.out.println(str);

	}

	public static void main2(String[] args) {
		
		System.out.println(10%3);
		System.out.println(-10%3);
		System.out.println(10%-3);
		System.out.println(-10%-3);
	}

	public static void main1(String[] args) {

		System.out.println(5/2);
		System.out.println(5.0/2);
		System.out.println((float)5/2);
		System.out.println((float)(5/2));

		System.out.println("hello");

	}
}